package com.rose.doorto.footbathdoor;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 启动类增加 @EnableFeignClients 用于在启动时加载我们定义的所有使用注解 @FeignClient 定义的feign客户端，
 * 并把feign客户端注册到 IOC 容器中。@EnableFeignClients注解中的basePackages用于配置扫描哪些包下来的类，
 * 这里我配置com.rose.doorto.footbathdoor.fegin包下的类
 *
 */
@EnableFeignClients(basePackages = "com.rose.doorto.footbathdoor.fegin")       //开启远程服务调用
@EnableDiscoveryClient    //开启注册中心
@SpringBootApplication
@MapperScan("com.rose.doorto.footbathdoor.mapper")
@EnableRedisHttpSession // 启用Spring Session
public class FootbathDoorApplication {

    public static void main(String[] args) {
        SpringApplication.run(FootbathDoorApplication.class, args);
    }


}
